fix(a11y): raise brand colour contrast to WCAG AA #86
+216
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
color-contrastfailures on Explore, recipe detail, Login, Register and 404. White text on the brand orange was 3.23:1, and brand-coloured text and links were below 4.5:1 on the light surfaces (active nav link 4.01:1).tokens.css.--color-text-muted(4.4:1 on its panel); it now uses--color-text-secondary(4.8:1).apps/web/src/components/ui/SKILL.md.e2e/accessibility.spec.tswith@axe-core/playwright(4.10.2, dev dependency). It checks WCAG 2.x A/AA rules on Explore, recipe detail, recipe not found, Login, Register, 404, Cookbook and Add Recipe (signed in), at 1280 px and 375 px: 16 tests, API mocked like the smoke tests, no database needed. It runs in CI with the rest oftest:e2e.Validation
npm run checkpasses (Node 24.21.0, 211 tests).mcr.microsoft.com/playwright:v1.63.0-noble.npm run check(213 tests) and the fulltest:e2epass on macOS (28 passed, 1 skipped without a database); smoke + accessibility suites pass on Linux (27/27).#e86a1c; it is decorative, so contrast rules do not apply.Remaining work
--color-text-muted(#667085) is borderline on the warm backgrounds (4.2–4.4:1). axe found no failing use after this change, but new uses on--color-bg-page/--color-bg-subtleshould use--color-text-secondary.best-practicerules (e.g.page-has-heading-one) can be enabled after Add an h1 to the "Recipe not found" page #68 is merged.AI usage
Written with Claude Code (Anthropic) during the final-delivery review. The change was proposed, implemented and tested by the AI agent and pushed from my account; the review summary is in the linked issue. Please review the diff as you would any other contribution.
Closes #67